package com.ly.heart.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ly.common.core.domain.AjaxResult;
import com.ly.heart.domain.KingRealInventoryEntity;
import com.ly.heart.domain.dto.KingRealInventoryDto;
import com.ly.heart.domain.dto.KingRealInventoryQueryDto;

import java.util.List;

/**
 * 金蝶-即时库存，出入库实时更新Service接口
 * @author wutao
 * @date 2024-07-24
 */
public interface IKingRealInventoryService extends IService<KingRealInventoryEntity> {

    /**
     * 查询金蝶-即时库存，出入库实时更新
     * @param id 金蝶-即时库存，出入库实时更新ID
     * @return 金蝶-即时库存，出入库实时更新
     */
    KingRealInventoryEntity selectKingRealInventoryEntityById (String id);

    /**
     * 查询金蝶-即时库存，出入库实时更新列表
     * @param kingRealInventoryEntity 金蝶-即时库存，出入库实时更新
     * @return 金蝶-即时库存，出入库实时更新集合
     */
    AjaxResult selectKingRealInventoryEntityList (KingRealInventoryEntity kingRealInventoryEntity);

    /**
     * 新增盈亏单
     * @return
     */
    AjaxResult saveInventory(KingRealInventoryDto kingRealInventoryDto);

    /**
     * 新增金蝶-即时库存，出入库实时更新
     * @param kingRealInventoryEntity 金蝶-即时库存，出入库实时更新
     * @return 结果
     */
    int insertKingRealInventoryEntity (KingRealInventoryEntity kingRealInventoryEntity);

    /**
     * 修改金蝶-即时库存，出入库实时更新
     * @param kingRealInventoryEntity 金蝶-即时库存，出入库实时更新
     * @return 结果
     */
    int updateKingRealInventoryEntity (KingRealInventoryEntity kingRealInventoryEntity);

    /**
     * 批量删除金蝶-即时库存，出入库实时更新
     * @param ids 需要删除的金蝶-即时库存，出入库实时更新ID
     * @return 结果
     */
    int deleteKingRealInventoryEntityByIds (String[] ids);

    /**
     * 删除金蝶-即时库存，出入库实时更新信息
     * @param id 金蝶-即时库存，出入库实时更新ID
     * @return 结果
     */
    int deleteKingRealInventoryEntityById (String id);

    /**
     * 根据物料,仓库,仓位查询实时库存
     * @return
     */
    KingRealInventoryEntity getRealInventoryByMaterialAndWarehouseAndPosition(KingRealInventoryQueryDto realInventoryQueryDto);
}
